<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>图书管理系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="${pageContext.request.contextPath}/assets/css/dpl-min.css" rel="stylesheet" type="text/css"/>
    <link href="${pageContext.request.contextPath}/assets/css/bui-min.css" rel="stylesheet" type="text/css"/>
    <link href="${pageContext.request.contextPath}/assets/css/main-min.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/AdminLTE.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/_all-skins.min.css">
    <script  charset="utf-8" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
    <script  charset="utf-8" src="${pageContext.request.contextPath}/js/bootstrap.js"></script>
    <link rel="shortcut icon" href="${pageContext.request.contextPath}/img/冯丕杰.ico">
</head>
<body>
<c:if test="${USER_SESSION==null}">
    PrintWriter out = response.getWriter();
    out.println("您还未登录，请登录");
    <jsp:forward page="login.jsp"/>
</c:if>
<div class="header">
    <div class="dl-title">
        <img src="${pageContext.request.contextPath}/assets/img/logo.png" style="height: 30px;">
        图书管理系统
        <span>Library Management System</span>
    </div>
    <div class="dl-log">
        欢迎您：<span class="dl-log-user">${USER_SESSION.name}</span>
        <a href="${pageContext.request.contextPath}/logout" title="退出系统" class="dl-log-quit">[退出]</a>
        <a href="${pageContext.request.contextPath}/delete?id=${USER_SESSION.id}" title="注销账户" class="dl-log-quit">[注销]</a>
    </div>
</div>
<div class="content">
    <div class="dl-main-nav">
        <div class="dl-inform">
            <div class="dl-inform-title"><s class="dl-inform-icon dl-up"></s></div>
        </div>
        <ul id="J_Nav" class="nav-list ks-clear">
            <li class="nav-item dl-selected">
                <div class="nav-item-inner nav-home">系统管理</div>
            </li>        <!-- <li class="nav-item dl-selected"><div class="nav-item-inner nav-order">业务管理</div></li> -->

        </ul>
    </div>
    <ul id="J_NavContent" class="dl-tab-conten">

    </ul>
</div>
<div class="footer">
    ©版权所有
</div>
<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/bui-min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/common/main-min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/config-min.js"></script>
<script>
    BUI.use('common/main', function () {
        var config = [{
            id: '1', menu: [{
                text: '书籍管理', items: [
                    {id: '5', text: '新书推荐', href: '${pageContext.request.contextPath}/book/selectNewbooks'},
                    {id: '3', text: '书籍借阅', href: '${pageContext.request.contextPath}/book/search'},
                    {id: '6', text: '当前借阅', href: '${pageContext.request.contextPath}/book/searchBorrowed'},
                    {id: '4', text: '借阅记录', href: '${pageContext.request.contextPath}/record/searchRecords'},
                    {id: '2', text: '个人中心', href: '${pageContext.request.contextPath}/admin/usercenter.jsp'},
                ]
            }]
        }];
        new PageUtil.MainPage({
            modulesConfig: config
        });
    });
</script>
</body>
</html>